import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//查询设备
export const getSerials = (data) =>
  request({
    url: baseUrl + "/api/report/serials",
    method: "get",
    params: data,
  });
// 机种序列
export const grtformula = (data) =>
  request({
    url: baseUrl + "/api/routes/formula",
    method: "get",
    params: data,
  });

export const serialsCodes = (data) =>
  request({
    url: baseUrl + "/api/report/serials/codes",
    method: "get",
    params: data,
  });

export const serialSerial = (data) =>
  request({
    url: baseUrl + "/api/report/serials/serial",
    method: "get",
    params: data,
  });
//导出接口
export const downloadoutput = (data) =>
  request({
    url: baseUrl + "/api/report/serials/output",
    method: "get",
    params: data,
    header: {
      "Content-Type": "application/json",
    },
    responseType: "blob",
  });
